﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EDrug extends Object
    {
        public var __value:int;
        public static const _EDrugLife:int = 0;
        public static const _EDrugMana:int = 1;
        public static const _EDrugLifeBag:int = 2;
        public static const _EDrugManaBag:int = 3;
        public static const _EDrugLifeInstant:int = 4;
        public static const _EDrugManaInstant:int = 5;
        public static const _EDrugMoreExp:int = 6;
        public static const _EDrugExp:int = 7;
        public static const _EDrugBuff:int = 8;
        public static const _EDrugState:int = 9;
        public static const _EDrugPetLifespan:int = 10;
        public static const _EDrugFixBuff:int = 11;
        public static const _EDrugPetLife:int = 12;
        public static const _EDrugPetLifeBag:int = 13;
        public static const _EDrugExpSuper:int = 14;
        public static const _EDrugExpLimit:int = 15;

        public function EDrug(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EDrug
        {
            return new EDrug(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EDrug
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 16)
            {
                throw new MarshalException();
            }
            return EDrug.convert(_loc_2);
        }// end function

    }
}
